package com.qiangzhi.service.impl;

import com.qiangzhi.context.BaseContext;
import com.qiangzhi.mapper.AdminInfoMapper;
import com.qiangzhi.pojo.vo.AdminVO;
import com.qiangzhi.service.AdminInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminInfoServiceImpl implements AdminInfoService {

    @Autowired
    private AdminInfoMapper adminInfoMapper;

    /**
     * 根据jwt解析出的id查询教务信息
     *
     * @return
     */
    public AdminVO getById() {
        return adminInfoMapper.getById(BaseContext.getCurrentId());
    }

}
